/*
package dao;

import domain.Manager;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;

public class ManagerDao {
    ArrayList<Manager> manList = new ArrayList<>();

    public ArrayList<Manager> login() {
        read();
        return manList;
    }

    public void read() {
        try {
            BufferedReader reader = new BufferedReader(new FileReader("server\\user.txt"));
            String line;
            while((line = reader.readLine())!=null) {
                String[] str = line.split(",");
                Manager man = new Manager(str[0], str[1]);
                manList.add(man);
            }
            reader.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
*/
